package com.kichina.parking.service.logic.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车场信息记录表
 * </p>
 *
 * @author Surging
 * @since 2022-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ParkingLotRecord extends Model<ParkingLotRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 车场信息记录表主键ID
     */
    @TableId(value = "parking_lot_record_id", type = IdType.UUID)
    private String parkingLotRecordId;

    /**
     * 车场ID	
     */
    private String parkid;

    /**
     * 总车位
     */
    private Integer spacetotal;

    /**
     * 剩余车位
     */
    @TableField("spaceLeft")
    private Integer spaceleft;

    /**
     * 已用车位
     */
    private Integer spaceused;

    /**
     * 时间	
     */
    private String time;

    /**
     * 时间日期类型
     */
    private Date timeDate;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 消息类型
     */
    private String service;


    @Override
    protected Serializable pkVal() {
        return this.parkingLotRecordId;
    }

}
